package com.atguigu.gmall.search.pojo;

import lombok.Data;

import java.util.List;


/**
 * search.gmall.com/search?keyword=手机&brandId=1,2&categoryId=225&props=4:8G-12G&props=5:128G-256G&sort=1
 *      &priceFrom=1000&priceTo=5000&pageNum=1&store=true
 */
@Data
public class SearchParmVo {
    //关键字
    private String keyword;

    //品牌过滤条件
    private List<Long> brandId;

    //分类过滤条件
    private List<Long> categoryId;

    //规格参数的过滤条件:["4:8G-12G"]
    private  List<String> props;

    //排序条件: 0-得分降序 1-价格升序 2-价格升序 3-销量降序 4-新品江苏
    private Integer sort = 0;

    //价格区间过滤
    private Double priceFrom;
    private Double priceTo;

    //分页参数
    private Integer pageNum =1;
    private final Integer pageSize =20;

    //仅显示有货
    private Boolean store;
}
